package com.ideaaedi.springcloud.jd.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ideaaedi.springcloud.jd.commonds.entity.user.bo.UserRoleBriefInfoBO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.po.SysUserRoleRePO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 系统-用户角色中间表 Mapper 接口
 * </p>
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 2021.0.1.A
 */
@Mapper
public interface SysUserRoleReMapper extends BaseMapper<SysUserRoleRePO> {

    /**
     * 查询用户角色简要信息
     *
     * @param userIdSet 用户id集合
     * @return  用户角色简要信息集合
     */
    List<UserRoleBriefInfoBO> loadUserBriefInfo(@NonNull @Param("ids") Set<Long> userIdSet);
}
